/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package workforce.limousine.service;

import java.util.List;
import org.jsrpc.servlet.SessionBean;
import org.springframework.web.context.support.WebApplicationContextUtils;


/**
 *
 * @author krisada
 */
public class LookupSearchManager extends SessionBean {
    
    private LookupSearcher searcher = null;
    
    public LookupSearchManager() {
        
    }
    
     private void init() {
        if (searcher == null) {
            searcher = (LookupSearcher) WebApplicationContextUtils.getWebApplicationContext(
                    this.getServletContext()).getBean("lookupSearcher");
        }
    }
     
    public List getLookupType(String type) {
        init();
        return searcher.searchLookupByGroup(type);
    } 
    
    
}
